package com.xiaoshuidi.cloud.module.finance.enums.voucher;

import lombok.Getter;

/**
	* @author dujianguang
	*/
@Getter
public enum FinanceVoucherPaymentTypeEnum {
		DSFZF("1015.11","线上联动渠道收款总额","其他货币资金_第三方支付平台"),
		YHZZ("1002.01","银行转账","银行存款"),
		XJ("1001.01","现金","库存现金");
		private final String code;
		private final String name;
		private final String remark;

		FinanceVoucherPaymentTypeEnum(String code, String name, String remark) {
				this.code = code;
				this.name = name;
				this.remark = remark;
		}
		public  FinanceVoucherPaymentTypeEnum find(String name) {
				for (FinanceVoucherPaymentTypeEnum value : values()) {
						if (value.getName().equals(name)) {
								return value;
						}
				}
				return null;
		}
}
